using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmDcInvestigation")]
    public class DcInvestigation
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "InvId", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public int InvId { get; set; }

		[ForeignKey("InvType")]
		[DataMember, Display(Name = "InvTypeId", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> InvTypeId { get; set; }

		[DataMember, Display(Name = "InvDate", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<System.DateTime> InvDate { get; set; }

		[DataMember, Display(Name = "InvRefNo", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string InvRefNo { get; set; }

		[DataMember, Display(Name = "InvName", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string InvName { get; set; }

		[ForeignKey("InvRef")]
		[DataMember, Display(Name = "InvRefId", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> InvRefId { get; set; }

		[ForeignKey("Crd")]
		[DataMember, Display(Name = "CrdId", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> CrdId { get; set; }

		[DataMember, Display(Name = "CrdDescr", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string CrdDescr { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string Remarks { get; set; }

		[ForeignKey("Stat")]
		[DataMember, Display(Name = "StatId", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string StatId { get; set; }

		[DataMember, Display(Name = "Appeals", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> Appeals { get; set; }

		[DataMember, Display(Name = "AppDate", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<System.DateTime> AppDate { get; set; }

		[DataMember, Display(Name = "AppResult", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string AppResult { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DcInvestigationsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual DcInvestigationType InvType { get; set; }

		public virtual HRM.DcInvestigation InvRef { get; set; }

		public virtual HRM.DcCrimeDtls Crd { get; set; }

		public virtual DcStatus Stat { get; set; }

    }
}